﻿
/*----------------------------------------------------------------//
// 文件名：MoAssStdItemScore.cs
// 文件功能描述：实体 MoAssStdItemScore.
// 
// 创建标识：Template  ver 5.0.20090429 2009-07-10
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/
#region MoAssStdItemScore
using System;
using System.Data;
namespace Las.Model
{
	/// <summary>
	/// 业务实体MoAssStdItemScore
	/// </summary>
	public partial class MoAssStdItemScore:ICloneable
	{
		#region 表AssStdItemScore的字段
		private string asisId;
		private string levDclId;
		private string assStdId;
		private int assItemScore;
		private int mScore;
		private int asisStatus;
		private string judgeId;
		private string judgeName;
		private string asisRem;
		private string crUid;
		private DateTime crTime;
		private string luUid;
		private DateTime luTime;
		private string class1;
		private string class2;
		#endregion
		
		#region 构造函数
		public MoAssStdItemScore()
		{
			          crTime=new DateTime(1900,1,1);  luTime=new DateTime(1900,1,1);    	    
		   
		}
		#endregion
		
		#region 拷贝构造函数

		public MoAssStdItemScore(MoAssStdItemScore item)
		{
			item.CopyTo(this);
		}
		#endregion
		
		#region 带参数构造函数
	    public MoAssStdItemScore(string asisId,string levDclId,string assStdId,int assItemScore,int mScore,int asisStatus,string judgeId,string judgeName,string asisRem,string crUid,DateTime crTime,string luUid,DateTime luTime,string class1,string class2)
		{
		this.asisId=asisId;
		this.levDclId=levDclId;
		this.assStdId=assStdId;
		this.assItemScore=assItemScore;
		this.mScore=mScore;
		this.asisStatus=asisStatus;
		this.judgeId=judgeId;
		this.judgeName=judgeName;
		this.asisRem=asisRem;
		this.crUid=crUid;
		this.crTime=crTime;
		this.luUid=luUid;
		this.luTime=luTime;
		this.class1=class1;
		this.class2=class2;
		}
		#endregion
		
		#region 表AssStdItemScore的字段属性
		/// <summary>
		///主键
		/// </summary>
		public string AsisId
		{
			get {return asisId;}
			set {asisId=value;}
		}
		/// <summary>
		/// LEV_DCL_ID
		/// </summary>
		public string LevDclId
		{
			get {return levDclId;}
			set {levDclId=value;}
		}
		/// <summary>
		/// ASS_STD_ID
		/// </summary>
		public string AssStdId
		{
			get {return assStdId;}
			set {assStdId=value;}
		}
		/// <summary>
		/// ASS_ITEM_SCORE
		/// </summary>
		public int AssItemScore
		{
			get {return assItemScore;}
			set {assItemScore=value;}
		}
		/// <summary>
		/// M_SCORE
		/// </summary>
		public int MScore
		{
			get {return mScore;}
			set {mScore=value;}
		}
		/// <summary>
		///0表示刚刚创建了这个项，是默认状态。
        ///1=已经为它准备了单位或人
        ///3=已经为准备的人和单位抽取课目
        ///7=已经为这些课目填了成绩   
        ///大于7表示修改过成绩。
		/// </summary>
		public int AsisStatus
		{
			get {return asisStatus;}
			set {asisStatus=value;}
		}
		/// <summary>
		///记录人员ID
		/// </summary>
		public string JudgeId
		{
			get {return judgeId;}
			set {judgeId=value;}
		}
		/// <summary>
		/// JUDGE_NAME
		/// </summary>
		public string JudgeName
		{
			get {return judgeName;}
			set {judgeName=value;}
		}
		/// <summary>
		///当手工填写成绩时，需要输入扣分原因。
		/// </summary>
		public string AsisRem
		{
			get {return asisRem;}
			set {asisRem=value;}
		}
		/// <summary>
		/// CR_UID
		/// </summary>
		public string CrUid
		{
			get {return crUid;}
			set {crUid=value;}
		}
		/// <summary>
		/// CR_TIME
		/// </summary>
		public DateTime CrTime
		{
			get {return crTime;}
			set {crTime=value;}
		}
		/// <summary>
		/// LU_UID
		/// </summary>
		public string LuUid
		{
			get {return luUid;}
			set {luUid=value;}
		}
		/// <summary>
		/// LU_TIME
		/// </summary>
		public DateTime LuTime
		{
			get {return luTime;}
			set {luTime=value;}
		}
		/// <summary>
		/// CLASS1
		/// </summary>
		public string Class1
		{
			get {return class1;}
			set {class1=value;}
		}
		/// <summary>
		/// CLASS2
		/// </summary>
		public string Class2
		{
			get {return class2;}
			set {class2=value;}
		}
		#endregion
		
		#region 辅助函数
		/// <summary>
		/// 拷贝函数
		/// </summary>
		public MoAssStdItemScore CopyTo(MoAssStdItemScore item)
        {
		    item.asisId=this.asisId;
		    item.levDclId=this.levDclId;
		    item.assStdId=this.assStdId;
		    item.assItemScore=this.assItemScore;
		    item.mScore=this.mScore;
		    item.asisStatus=this.asisStatus;
		    item.judgeId=this.judgeId;
		    item.judgeName=this.judgeName;
		    item.asisRem=this.asisRem;
		    item.crUid=this.crUid;
		    item.crTime=this.crTime;
		    item.luUid=this.luUid;
		    item.luTime=this.luTime;
		    item.class1=this.class1;
		    item.class2=this.class2;
			return item;
        }
		/// <summary>
		/// 克隆函数
		/// </summary>		
		public object Clone()
        {
            MoAssStdItemScore mo=new MoAssStdItemScore();
		    mo.AsisId=this.AsisId;
		    mo.LevDclId=this.LevDclId;
		    mo.AssStdId=this.AssStdId;
		    mo.AssItemScore=this.AssItemScore;
		    mo.MScore=this.MScore;
		    mo.AsisStatus=this.AsisStatus;
		    mo.JudgeId=this.JudgeId;
		    mo.JudgeName=this.JudgeName;
		    mo.AsisRem=this.AsisRem;
		    mo.CrUid=this.CrUid;
		    mo.CrTime=this.CrTime;
		    mo.LuUid=this.LuUid;
		    mo.LuTime=this.LuTime;
		    mo.Class1=this.Class1;
		    mo.Class2=this.Class2;
			return mo;
		}
				///<summary>
		///判断对象是否相等
		///<summary>
		public override bool Equals(object obj)
        {		 
            if (object.ReferenceEquals(this,obj))
            {
                return true;
            }
            else
            {
                MoAssStdItemScore NewAssStdItemScore = obj as MoAssStdItemScore;
                if (NewAssStdItemScore == null)
                {
                    return false;
                }
                else
                {
				if (NewAssStdItemScore.AsisId==this.AsisId && NewAssStdItemScore.LevDclId==this.LevDclId && NewAssStdItemScore.AssStdId==this.AssStdId && NewAssStdItemScore.AssItemScore==this.AssItemScore && NewAssStdItemScore.MScore==this.MScore && NewAssStdItemScore.AsisStatus==this.AsisStatus && NewAssStdItemScore.JudgeId==this.JudgeId && NewAssStdItemScore.JudgeName==this.JudgeName && NewAssStdItemScore.AsisRem==this.AsisRem && NewAssStdItemScore.CrUid==this.CrUid && NewAssStdItemScore.CrTime==this.CrTime && NewAssStdItemScore.LuUid==this.LuUid && NewAssStdItemScore.LuTime==this.LuTime && NewAssStdItemScore.Class1==this.Class1 && NewAssStdItemScore.Class2==this.Class2)		
					{
                        return true; 
                    }
                }

            }
            return false;
            
        }
		///TODO:you should modify GetHashCode by yourself.
		public override int GetHashCode()
		{
			return base.GetHashCode();
		} 

		public override string ToString()
        {
		   return String.Format(System.Globalization.CultureInfo.InvariantCulture,"AsisId={0}/LevDclId={1}/AssStdId={2}/AssItemScore={3}/MScore={4}/AsisStatus={5}/JudgeId={6}/JudgeName={7}/AsisRem={8}/CrUid={9}/CrTime={10}/LuUid={11}/LuTime={12}/Class1={13}/Class2={14}",asisId,levDclId,assStdId,assItemScore,mScore,asisStatus,judgeId,judgeName,asisRem,crUid,crTime,luUid,luTime,class1,class2);
		 
		}
		#endregion
		
		
		#region DataTable Help Function
		///<summary>
		///DataRow转换成Model
		///</summary>
		public void Row2Model(DataRow row)
		{
		    if(row["Asis_ID"]!=null && row["Asis_ID"]!=DBNull.Value)
			{
			    this.AsisId = (string)row["Asis_ID"];
			}
			else
			{
				this.AsisId =string.Empty;
			}
		    if(row["Lev_Dcl_ID"]!=null && row["Lev_Dcl_ID"]!=DBNull.Value)
			{
			    this.LevDclId = (string)row["Lev_Dcl_ID"];
			}
			else
			{
				this.LevDclId =string.Empty;
			}
		    if(row["Ass_Std_ID"]!=null && row["Ass_Std_ID"]!=DBNull.Value)
			{
			    this.AssStdId = (string)row["Ass_Std_ID"];
			}
			else
			{
				this.AssStdId =string.Empty;
			}
		    if(row["Ass_Item_Score"]!=null && row["Ass_Item_Score"]!=DBNull.Value)
			{
			    this.AssItemScore = (int)row["Ass_Item_Score"];
			}
			else
			{
				this.AssItemScore =0;
			}
		    if(row["M_Score"]!=null && row["M_Score"]!=DBNull.Value)
			{
			    this.MScore = (int)row["M_Score"];
			}
			else
			{
				this.MScore =0;
			}
		    if(row["Asis_Status"]!=null && row["Asis_Status"]!=DBNull.Value)
			{
			    this.AsisStatus = (int)row["Asis_Status"];
			}
			else
			{
				this.AsisStatus =0;
			}
		    if(row["Judge_ID"]!=null && row["Judge_ID"]!=DBNull.Value)
			{
			    this.JudgeId = (string)row["Judge_ID"];
			}
			else
			{
				this.JudgeId =string.Empty;
			}
		    if(row["Judge_Name"]!=null && row["Judge_Name"]!=DBNull.Value)
			{
			    this.JudgeName = (string)row["Judge_Name"];
			}
			else
			{
				this.JudgeName =string.Empty;
			}
		    if(row["Asis_Rem"]!=null && row["Asis_Rem"]!=DBNull.Value)
			{
			    this.AsisRem = (string)row["Asis_Rem"];
			}
			else
			{
				this.AsisRem =string.Empty;
			}
		    if(row["CR_UID"]!=null && row["CR_UID"]!=DBNull.Value)
			{
			    this.CrUid = (string)row["CR_UID"];
			}
			else
			{
				this.CrUid =string.Empty;
			}
		    if(row["CR_Time"]!=null && row["CR_Time"]!=DBNull.Value)
			{
			    this.CrTime = (DateTime)row["CR_Time"];
			}
			else
			{
				this.CrTime =DateTime.MinValue;
			}
		    if(row["LU_UID"]!=null && row["LU_UID"]!=DBNull.Value)
			{
			    this.LuUid = (string)row["LU_UID"];
			}
			else
			{
				this.LuUid =string.Empty;
			}
		    if(row["LU_TIME"]!=null && row["LU_TIME"]!=DBNull.Value)
			{
			    this.LuTime = (DateTime)row["LU_TIME"];
			}
			else
			{
				this.LuTime =DateTime.MinValue;
			}
		    if(row["Class1"]!=null && row["Class1"]!=DBNull.Value)
			{
			    this.Class1 = (string)row["Class1"];
			}
			else
			{
				this.Class1 =string.Empty;
			}
		    if(row["Class2"]!=null && row["Class2"]!=DBNull.Value)
			{
			    this.Class2 = (string)row["Class2"];
			}
			else
			{
				this.Class2 =string.Empty;
			}
		}
		
		///<summary>
		///Model转换成DataRow
		///</summary>
	　　public void Model2Row(DataRow row)
		{
			row["Asis_ID"] = this.AsisId;
			row["Lev_Dcl_ID"] = this.LevDclId;
			row["Ass_Std_ID"] = this.AssStdId;
			row["Ass_Item_Score"] = this.AssItemScore;
			row["M_Score"] = this.MScore;
			row["Asis_Status"] = this.AsisStatus;
			row["Judge_ID"] = this.JudgeId;
			row["Judge_Name"] = this.JudgeName;
			row["Asis_Rem"] = this.AsisRem;
			row["CR_UID"] = this.CrUid;
			row["CR_Time"] = this.CrTime;
			row["LU_UID"] = this.LuUid;
			row["LU_TIME"] = this.LuTime;
			row["Class1"] = this.Class1;
			row["Class2"] = this.Class2;
		}
		#endregion
	}
}
#endregion
